﻿using System.Configuration;

namespace SimpleORM
{
    public class ProviderSettings : ConfigurationSection
    {
        #region Ctor

        private const string stringProviderContext = "providerSettings";
        private const string stringProviders = "providers";

        #endregion

        #region Properties

        [ConfigurationProperty(stringProviders, IsDefaultCollection = true)]
        public ProviderElementCollection Providers
        {
            get { return (ProviderElementCollection)this[stringProviders]; }
        }

        #endregion

        #region Methods

        #region Methods - Static

        public static ProviderSettings GetContext()
        {
            return null;
            //return ConfigurationManager.GetSection(stringProviderContext) as ProviderSettings;
        }

        #endregion

        #endregion
    }
}
